- Posted on
- Featured Image
Learn to bolt AI into your terminal with a tiny, auditable Bash script (ai.sh) that uses curl and jq to call OpenAI or local Ollama models. It adds ask, explain, gen, and summarize subcommands that play nicely with pipes, files, and env vars; emphasizes safe, POSIX-friendly snippets; limits file size; and includes setup, real-world examples, customization, and troubleshooting so you can adopt it in SSH, containers, or CI with minimal fuss.